# -*- coding: utf-8 -*-
#==============================================================
# @Descripttion: 
# @version: 
# @Author: weni09
# @Date: 2021-04-07 17:43:19
# @LastEditors: weni09
# @LastEditTime: 2021-04-07 17:43:20
# @FilePath: \blogfastapi\apps\admin\test2.py
#==============================================================


import misaka
mdtext = "jioj\n>jjojoj\n## jiioiojioi\n```python \ndef test:\n    print(test)\n```"

extensions = ('tables','fenced-code','footnotes','autolink','strikethrough','underline','highlight','quote','superscript','math','no-intra-emphasis','space-headers','math-explicit','disable-indented-code')
# #
html = misaka.html(mdtext,extensions=extensions,)
print(html)
#
# import mistune
# renderer = mistune.Renderer(escape=True, hard_wrap=True)
# markdown = mistune.Markdown(renderer=renderer)
# print(markdown(mdtext))
# from markdown import markdown
# print(markdown(mdtext))
# 差集
# a = [1,2,3]
# b = [2,3,4]
# print(list(set(a) ^ set(b)))
# print (list(set(a).difference(set(b))))